package com.ftwj.demo.utils.result;

import com.fasterxml.jackson.annotation.JsonFormat;

//@JsonSerialize
//@JsonDeserialize
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DataStateEnum {

	DISABLED(0, "已禁止"), 
	NORMAL(1, "正常"), 
	DELETE(-1, "已删除");
	
	
	private final Integer code;
	private final String state;
	
	public Integer getCode() {
		return code;
	}
	public String getState() {
		return state;
	}
	
	private DataStateEnum(Integer code, String state) {
		this.code = code;
		this.state = state;
	}
	
}